using System;
using System.Collections.Generic;
using System.Text;
using AAM.BIZ;
using AAM;

namespace CMS.BIZ
{
    [DatabaseTable(TableName = "MessageFolders",TableAlias="msgFol")]
    public class BizMessageFolder : BizObject
    {
        public static readonly ObjectType ObjectType = new ObjectType("BizMessageFolder");


        private int messageFolderID = 0;
        private int memberID = 0;
        private int? parentFolderID = null;
        private string messageFolderName = "";

        public BizMessageFolder()
            : base(ObjectType, new object[] { 0 })
        {
        }

        [DatabaseRow(PrimaryKey = true, Identity = true)]
        public int MessageFolderID
        {
            get { return messageFolderID; }
            set { messageFolderID = value; ID[0] = value; }
        }
        [DatabaseRow()]
        public int MemberID
        {
            get { return memberID; }
            set { memberID = value; }
        }
        [DatabaseRow()]
        public int? ParentFolderID
        {
            get { return parentFolderID; }
            set { parentFolderID = value; }
        }
        [DatabaseRow()]
        public string MessageFolderName
        {
            get { return messageFolderName; }
            set { messageFolderName = value; }
        }
    }
}
